package tech.pdai.springframework.support;

import org.springframework.beans.BeansException;
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
import org.springframework.context.support.AbstractRefreshableConfigApplicationContext;

import java.io.IOException;

/**
 * 自定义应用类容器
 * https://www.cnblogs.com/grey-wolf/p/12078673.html
 */
public class ClassPathJsonApplicationContext extends AbstractRefreshableConfigApplicationContext {

    @Override
    protected void loadBeanDefinitions(DefaultListableBeanFactory beanFactory) throws BeansException, IOException {

    }

    @Override
    protected void initPropertySources() {
        System.out.println("ClassPathJsonApplicationContext.initPropertySources()");
    }
}
